#include "solution.h"

int main(){
	PvehiclePath path=initVehiclePath();
	PedgeID _12=initEdgeID(1,2);
	printf("aggiungo gli archi nel percorso...\n");
	addEdgeToVehiclePath(_12,path);
	addEdgeToVehiclePath(initEdgeID(2,3),path);
	addEdgeToVehiclePath(initEdgeID(2,1),path);
	addEdgeToVehiclePath(initEdgeID(3,4),path);
	printf("ora inizio il ciclo\n");
	PedgeSol current;
	resetMemory(path,DIRECTION_NEXT);
	while ((current=getNearEdgeInVehiclePath(path,DIRECTION_NEXT))!=NULL){
		printEdgeSol(stdout,current);
	}
	printf("fine!\n");
	return 0;
}
